import request from '@/utils/request'

// 查询模板信息列表
export function listTemplateMessage(query) {
  return request({
    url: '/manage/templateMessage/list',
    method: 'get',
    params: query
  })
}

// 查询模板信息详细
export function getTemplateMessage(id) {
  return request({
    url: '/manage/templateMessage/' + id,
    method: 'get'
  })
}

// 新增模板信息
export function addTemplateMessage(data) {
  return request({
    url: '/manage/templateMessage',
    method: 'post',
    data: data
  })
}

// 修改模板信息
export function updateTemplateMessage(data) {
  return request({
    url: '/manage/templateMessage',
    method: 'put',
    data: data
  })
}

// 删除模板信息
export function delTemplateMessage(id) {
  return request({
    url: '/manage/templateMessage/' + id,
    method: 'delete'
  })
}
